package com.tz.entity;

/**
 * Created by Tinyang on 2016/7/27.
 */import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="SHOPPING_PICTURE")
public class Picture {

    private long id;

    private String path;

    private boolean cover;


    public Picture() {
        super();
    }

    public Picture(String path, boolean cover) {
        super();
        this.path = path;
        this.cover = cover;
    }
    @Id
    @GeneratedValue
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public boolean isCover() {
        return cover;
    }

    public void setCover(boolean cover) {
        this.cover = cover;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("Picture [id=");
        builder.append(id);
        builder.append(", path=");
        builder.append(path);
        builder.append(", cover=");
        builder.append(cover);
        builder.append("]");
        return builder.toString();
    }

}